import request from '@/utils/request'


export function getAll(payload) {
  let time = Date.now();
  return request({
    url: `/admin/goods/?t=${time}&&id=${payload.id}&&size=${payload.size}&&current=${payload.current}`,
    method: 'get',
  })
}
export function udtStu(id,data){
  return request({
    url:`/admin/goods/${id}`,
    method:'put',
    data
  })
}
export function addStu(payload) {
  console.log(11,payload);
  return request({
    url: "/admin/goods/",
    method: 'post',
    data:payload
  })
}
export function dltStu(id) {
  return request({
    url: `/admin/goods/?id=${id}`,
    method: 'delete'
  })
}